package com.shmn.gongjiajumain.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shmn.common.utils.PageUtils;
import com.shmn.common.utils.Query;

import com.shmn.gongjiajumain.dao.RegularMaintenanceDao;
import com.shmn.gongjiajumain.entity.RegularMaintenanceEntity;
import com.shmn.gongjiajumain.service.RegularMaintenanceService;


@Service("regularMaintenanceService")
public class RegularMaintenanceServiceImpl extends ServiceImpl<RegularMaintenanceDao, RegularMaintenanceEntity> implements RegularMaintenanceService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RegularMaintenanceEntity> page = this.page(
                new Query<RegularMaintenanceEntity>().getPage(params),
                new QueryWrapper<RegularMaintenanceEntity>()
        );

        return new PageUtils(page);
    }

}